﻿using Enter.Admin.Utils;
using System;

namespace Enter.Admin.Enums
{

    public enum EnumArchive
    {
        /// <summary>
        /// 是否退案
        /// </summary>
        EnumArchiveIsOutCase = 1,
        /// <summary>
        /// 被告情况(还款意愿)
        /// </summary>
        EnumArchiveDefendantRepay = 10,
        /// <summary>
        /// 合同类别(新合同/旧合同)
        /// </summary>
        EnumArchiveContractType = 20,
        /// <summary>
        /// 委托状态
        /// </summary>
        EnumArchiveTrustState = 30,
        /// <summary>
        /// 性别
        /// </summary>
        EnumArchiveCustomerSexy = 40,
        /// <summary>
        /// 支付方式(自主支付/受托支付)
        /// </summary>
        EnumArchivePayType = 50,
        /// <summary>
        /// 合同里的收款账户是(受托人/本人)
        /// </summary>
        EnumArchiveSelfType = 60,
        /// <summary>
        /// 终结执行类型（正常终结/非正常终结）
        /// </summary>
        EnumArchiveEndExecType = 70,
        /// <summary>
        /// 终本类型（正常终结/非正常终结）
        /// </summary>
        EnumArchiveClosingType = 80,
        /// <summary>
        /// 保全进度：待保全/已保全未出查冻扣通知书/已保全已查封
        /// </summary>
        EnumArchivePreserveProgress = 90,
        /// <summary>
        /// 被告情况(到庭情况)
        /// </summary>
        EnumArchiveDefendantComeState = 100,
        /// <summary>
        /// 判决结果（胜诉/败诉/部分败诉）
        /// </summary>
        EnumArchiveVerdictResult = 110,
        /// <summary>
        /// 是否
        /// </summary>
        EnumYesNo = 120,
        /// <summary>
        /// 有无
        /// </summary>
        EnumHaveNo = 125,
        /// <summary>
        /// 案件进展/诉讼进展
        /// </summary>
        EnumArchiveNatural1 = 130,
        /// <summary>
        /// 用户
        /// </summary>
        EnumEmploy = 200,
        /// <summary>
        /// 已办理/未办理
        /// </summary>
        EnumHaveNoBanli = 300,
        /// <summary>
        /// 所属机构
        /// </summary>
        EnumDynamicTable = 310,
        /// <summary>
        /// 保全备注：（房产/车辆/股权/其他）
        /// </summary>
        EnumArchivePreserveType = 400,
        /// <summary>
        /// 退案情况(退案情况)   [已退案/已移交特管/债转退案/特殊案件]
        /// </summary>
        EnumArchiveOutCaseType = 430,

    }

    /// <summary>
    /// 诉讼进展(贷贷卡和新一贷（移交特管）的诉讼费进展只有：未诉；已诉未判；已判未执；正在执行；终本)
    /// </summary>
    public enum EnumArchiveNatural_13
    {
        // 未诉；已诉未判；已判未执；正在执行；终本
        未诉 = 1,
        已诉未判 = 2,
        已判未执 = 3,
        正在执行 = 4,
        终本 = 5,
    }

    /// <summary>
    /// 退案进展
    /// </summary>
    public enum EnumArchiveProgressOfOutCase
    {
        已退案 = 1,
        未退案 = 2,
        可退案 = 3,
    }

    public enum EnumArchiveCaseType
    {
        新一贷 = 1,
        台账总表 = 2,
        贷贷卡台账 = 3
    }

    // SealOutTime 保全到期前45日提前  保全到期日/查封、冻结到期日
    // CourtTime   开庭提前10日提醒
    // RenewalTime 委托到期日前45日提醒 委托到期日/续聘到期日
    // EnumArchiveNoticed like = EnumArchiveNoticed.篮球 | EnumArchiveNoticed.乒乓球 | EnumArchiveNoticed.羽毛球;
    // int select = (int)SealOutTime45 & (int)like;
    // bool isSelect = select == (int)SealOutTime45;
    [Flags]
    public enum EnumArchiveNoticed
    {
        SealOutTime45 = 1,
        CourtTime10 = 1 << 1,
        RenewalTime45 = 1 << 2,
    }
    
}
